home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / ab20 / ab20_archive / utilities / emulators / apple2emul.lzh / cli.h < prev    next >
C/C++ Source or Header  |  1991-04-18  |  1KB  |  49 lines

  1. /*
  2.  *  a2, an Apple II emulator in C
  3.  *  (c) Copyright 1990 by Rich Skrenta
  4.  *
  5.  *  Command line interface written by Tom Markson
  6.  *
  7.  *  Distribution agreement:
  8.  *
  9.  *    You may freely copy or redistribute this software, so long
  10.  *    as there is no profit made from its use, sale, trade or
  11.  *    reproduction.  You may not change this copyright notice,
  12.  *    and it must be included prominently in any copy made.
  13.  *
  14.  *  Send emulator related mail to:  skrenta@blekko.commodore.com
  15.  *                    skrenta@blekko.uucp
  16.  */
  17.  
  18.  
  19.  
  20. /*
  21.  *  Return codes for match(), find_box(), and parse()
  22.  */
  23.  
  24. #define        NO_MATCH    -1    /* strings are different */
  25. #define        PARTIAL        -3    /* partial match */
  26. #define        IDENTICAL    -4    /* strings matched perfectly */
  27.  
  28. #define        AMBIGUOUS    -2    /* amiguous match */
  29. #define        OK        -5    /* command executed ok */
  30. #define        NOT_IMPLEMENTED    -6    /* haven't written this one yet */
  31. #define        DISPLAY        -7    /* redisplay the diss & flags line */
  32.  
  33. #define MAXSTACK 100
  34.  
  35. struct cmdtbl {
  36.     char *name;
  37.     int (*func)();
  38. };
  39.  
  40. extern long breakpoint;
  41. extern struct cmdtbl first_tbl[];
  42. extern int in_cli;
  43. extern long trace_lo, trace_hi;
  44. extern long get_hex_number();
  45. extern FILE *logging_fp;
  46. extern char *getenv();
  47. extern char *split();
  48.  
  49.